package com.kob.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kob.backend.pojo.orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.security.core.parameters.P;

import java.util.List;

@Mapper
public interface OrdersMapper extends BaseMapper<orders> {
    @Select("select orders.* from orders where userid=#{userid}")
    public List<orders> getorderinfo(@Param("userid")Integer userid);

    @Select("update orders set completetime=#{completetime} where id=#{orderid}")
    public void updatecompletetime(@Param("orderid")Integer orderid,@Param("completetime")String completetime);
}
